#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define XH(i,a,b) for(int i = a; i < b; ++i)
#define XXH(i,b,a) for(int i = b; i >= a; --i)
#define Module 998244353
int tInt;ll tll;string tString;char tChar;
vector<int>tIVector;

string s;

bool ispalindrome(string ss){
  tString =  ss;
  reverse(ss.begin(),ss.end());
  return ss == tString;
}

void solve(){
  tString = s;
  reverse(tString.begin(),tString.end());
  if(s == tString){
    cout<<"Yes"<<endl;
    return ;
  }
  while(s.size() && s[s.size() - 1] == '0'){
    s = s.substr(0, s.size() - 1);
    if(ispalindrome(s)){
      cout<<"Yes"<<endl;
      return;
    }
  }
  cout<<"No"<<endl;
}

int main(){
  #ifndef ONLINE_JUDGE
    auto start_clock = clock();
    //freopen("input.txt","r",stdin);
//  freopen("output.txt","w",stdout);
  #endif
  cin>>s;
  solve();
  
  #ifndef ONLINE_JUDGE
    auto end_clock = clock();
    //cout<<"runtime: "<<end_clock - start_clock<<"ms"<<endl;
  #endif
  return 0;
}
